<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<link rel="stylesheet" href="S.css" />
	<script type="text/javascript" src="../jquery.min.js"></script>
	<script type="text/javascript" src="S.js"></script>
</head>
<body>
	<script type="text/javascript">
	  	var hotkeys =  new S.HotKey();
	 	 var mbox = new S.MessageBox();
		hotkeys.registe('M',function(){
			mbox.addMessage('热键按下','M','info');
		});
		 hotkeys.registe('2',function(){
			mbox.addMessage('热键按下','2','info');
		});
		hotkeys.registe('ctrl+a',function(){
			mbox.addMessage('热键按下','ctrl+a','info');
		});
		hotkeys.registe('ctrl+shift+q',function(){
			mbox.addMessage('热键按下','ctrl+shift+m','info');
		});
		hotkeys.registe('enter',function(){
			new S.Info({text:'entered',type:'danger'}).show();
		});
		hotkeys.registe('f2',function(){
			new S.Info({text:'f2',type:'danger'}).show();
		});
		hotkeys.registe('`',function(){
			new S.Info({text:'`',type:'danger'}).show();
		});
		hotkeys.registe('capslock',function(){
			new S.Info({text:'capslock',type:'danger'}).show();
		});
		hotkeys.registe('LEFT',function(){
			new S.Info({text:'left',type:'danger'}).show();
		});
		hotkeys.registe('right',function(){
			new S.Info({text:'right',type:'danger'}).show();
		});
		hotkeys.registe('UP',function(){
			new S.Info({text:'UP',type:'danger'}).show();
		});
		hotkeys.registe('DOWN',function(){
			new S.Info({text:'DOWN',type:'danger'}).show();
		});
	</script>
</body>
</html>